<?php

namespace Hr\OnlineBundle;

use Hr\OnlineBundle\Lib\Globals;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class HrOnlineBundle extends Bundle
{
	public function boot()
    {
        // Set some static globals 
        Globals::setUploadDir($this->container->getParameter('hr_online.upload_dir'));
        Globals::setMinPasswordLength($this->container->getParameter('hr_online.user.min_password_length'));



		// i18n
		/*
	//	$request = $this->getRequest(); 
	//	$locale = $request->query->get('_locale');
		$locale = "fr";
		if ($locale) {
			// $request->setLocale($locale);
			$this->get('session')->set('_locale', $locale);
		}
		*/

    }

}
